html, body {
    margin: 0;
    padding: 0;
}

.tiles {
    width: 750px;
    height: 450px;
    perspective: 1000px;
}

.box-shiny {
    position: relative;
    float: left;
    width: calc(150px - 12px);
    height: calc(150px - 12px);
}

.box-shiny a {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.box-shiny a:nth-child(1) {
    -webkit-clip-path: polygon(0 0, 100% 0, 50% 50%);
    clip-path: polygon(0 0, 100% 0, 50% 50%);
}

.box-shiny a:nth-child(2) {
    -webkit-clip-path: polygon(100% 0, 100% 100%, 50% 50%);
    clip-path: polygon(100% 0, 100% 100%, 50% 50%);
}

.box-shiny a:nth-child(3) {
    -webkit-clip-path: polygon(0 100%, 50% 50%, 100% 100%);
    clip-path: polygon(0 100%, 50% 50%, 100% 100%);
}

.box-shiny a:nth-child(4) {
    -webkit-clip-path: polygon(0 0, 50% 50%, 0 100%);
    clip-path: polygon(0 0, 50% 50%, 0 100%);
}

.box-shiny a:hover {
    z-index: 3;
    -webkit-clip-path: none;
    clip-path: none;
}

.box-shiny a:nth-child(1):hover ~ .box {
    transform: rotateX(180deg);
}

.box-shiny a:nth-child(2):hover ~ .box {
    transform: rotateY(180deg);
}

.box-shiny a:nth-child(3):hover ~ .box {
    transform: rotateX(-180deg);
}

.box-shiny a:nth-child(4):hover ~ .box {
    transform: rotateY(-180deg);
}

.box-shiny a:nth-child(1):hover ~ .box:after, .box-shiny a:nth-child(3):hover ~ .box:after {
    transform: rotateX(-180deg);
}

.box-shiny a:nth-child(2):hover ~ .box:after, .box-shiny a:nth-child(4):hover ~ .box:after {
    transform: rotateY(-180deg);
}

.box-shiny .box {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: "Open Sans", sans-serif;
    /*box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);*/
    transform-style: preserve-3d;
    transition: transform .3s ease-in-out;
}

.box-shiny .box:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    color: #FFF;
    align-items: center;
    justify-content: center;
    font: normal normal normal 14px/1 iconfont;
    font-size: 6em;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    border-radius: 2px;
    z-index: 2;
    backface-visibility: hidden;
}

.box-shiny .box:after {
    content: '\f06e';
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    /*box-shinyor: #FFF;*/
    font: normal normal normal 14px/1 iconfont;
    font-size: 6rem;
    border-radius: 2px;
    transition-delay: .15s;
}

.box-shiny.gift .box:before {
    content: '\e649';
    background-image: linear-gradient(225deg, #5433FF 20%, #20BDFF 70%, #A5FECB 100%);
}

.box-shiny.gift .box:after {
    content: '\e652';
    background-image: linear-gradient(225deg, #5433FF 20%, #20BDFF 70%, #A5FECB 100%);
}

.box-shiny.info_1 .box:before {
    content: '\e639';
    background-image: linear-gradient(45deg, #5433FF 20%, #20BDFF 70%, #A5FECB 100%);
}

.box-shiny.info_1 .box:after {
    content: '\e640';
    background-image: linear-gradient(45deg, #5433FF 20%, #20BDFF 70%, #A5FECB 100%);
}

.box-shiny.info_2 .box:before {
    content: '\e63d';
    background-image: linear-gradient(315deg, #5433FF 20%, #20BDFF 70%, #A5FECB 100%);
}

.box-shiny.info_2 .box:after {
    content: '\e64b';
    background-image: linear-gradient(315deg, #5433FF 20%, #20BDFF 70%, #A5FECB 100%);
}

/*.box-shiny:nth-child(1) .box:before {
    background: #3f51b5;
}

.box-shiny:nth-child(1) .box:after {
    background: #3f51b5;
}

.box-shiny:nth-child(2) .box:before {
    background: #1da1f2;
}

.box-shiny:nth-child(2) .box:after {
    background: #1da1f2;
}

.box-shiny:nth-child(3) .box:before {
    background: #dc4a38;
}

.box-shiny:nth-child(3) .box:after {
    background: #dc4a38;
}

.box-shiny:nth-child(4) .box:before {
    background: #006699;
}

.box-shiny:nth-child(4) .box:after {
    background: #006699;
}

.box-shiny:nth-child(5) .box:before {
    background: #36465d;
}

.box-shiny:nth-child(5) .box:after {
    background: #36465d;
}

.box-shiny:nth-child(6) .box:before {
    background: #f16528;
}

.box-shiny:nth-child(6) .box:after {
    background: #f16528;
}

.box-shiny:nth-child(7) .box:before {
    background: #0170ba;
}

.box-shiny:nth-child(7) .box:after {
    background: #0170ba;
}

.box-shiny:nth-child(8) .box:before {
    background: #21759b;
}

.box-shiny:nth-child(8) .box:after {
    background: #21759b;
}

.box-shiny:nth-child(9) .box:before {
    background: #323131;
}

.box-shiny:nth-child(9) .box:after {
    background: #323131;
}

.box-shiny:nth-child(10) .box:before {
    background: #000000;
}

.box-shiny:nth-child(10) .box:after {
    background: #000000;
}

.box-shiny:nth-child(11) .box:before {
    !*content: "\f268";*!
    background: #fec540;
}

.box-shiny:nth-child(11) .box:after {
    background: #fec540;
}

.box-shiny:nth-child(12) .box:before {
    background: #ef8043;
}

.box-shiny:nth-child(12) .box:after {
    background: #ef8043;
}

.box-shiny:nth-child(13) .box:before {
    background: #2c74be;
}

.box-shiny:nth-child(13) .box:after {
    background: #2c74be;
}

.box-shiny:nth-child(14) .box:before {
    background: #409ed4;
}

.box-shiny:nth-child(14) .box:after {
    background: #409ed4;
}

.box-shiny:nth-child(15) .box:before {
    background: #cc0f15;
}

.box-shiny:nth-child(15) .box:after {
    background: #cc0f15;
}*/
